#include <QtGui>
#include "query.h"
using namespace std;

class HKCatcher : public QLineEdit {

Q_OBJECT
  public:
    HKCatcher(QWidget *parent = 0);
    int key;
  protected:
    virtual void keyPressEvent(QKeyEvent * e);
};

class PrefWindow : public QDialog {

Q_OBJECT
  public:
    PrefWindow(QWidget *parent = 0);
  private:
    QLineEdit * favEdit;
    QLineEdit * verbsEdit;
    HKCatcher * shortcutEdit;
    QCheckBox * ctrl;
    QCheckBox * meta;
    QCheckBox * alt;
    QCheckBox * shift;
  protected:
    void closeEvent(QCloseEvent * event);
};